import BaseDialog from "../base/BaseDialog";
import Net from "../../common/net/Net";

const {ccclass, property} = cc._decorator;

@ccclass
export default class ChatDialog extends BaseDialog {
    @property(cc.EditBox)
    chatEditbox:cc.EditBox = null;

    start () {

    }

    sendButtonClick () {
        Net.request("chat.chatHandler.chat", this.chatEditbox.string, ()=>{
            this.chatEditbox.string = "";
        });
    }
}
